<?php
namespace Home\Controller;
use Think\Controller;

class IndexController extends Controller
{
	public function index()
	{
		$connect = M(article);
		$article = $connect->where('article_state=1')->order('article_create_time')->limit('5')->select();
		$this->assign('article', $article);
		return $this->display('index');
	}
}